package com.insigma.business.qrcode.pay.service.impl;

import com.insigma.business.qrcode.pay.dao.MerchantOrderMapper;
import com.insigma.business.qrcode.pay.dto.MerchantOrderBSearcher;
import com.insigma.business.qrcode.pay.dto.MerchantOrderDTO;
import com.insigma.business.qrcode.pay.entity.MerchantOrder;
import com.insigma.business.qrcode.pay.service.MerchantOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class MerchantOrderServiceImpl implements MerchantOrderService {
    @Resource
    private MerchantOrderMapper merchantOrderMapper;

    @Override
    public List<MerchantOrder> search(MerchantOrderBSearcher merchantOrderBSearcher) {
        return merchantOrderMapper.search(merchantOrderBSearcher);
    }

    @Override
    public int insert(MerchantOrder merchantOrder) {
        return merchantOrderMapper.insert(merchantOrder);
    }

    @Override
    public MerchantOrder get(String id) {
        return merchantOrderMapper.get(id);
    }

    @Override
    public int isComment(String id) {
        return merchantOrderMapper.isComment(id);
    }

    @Override
    public int confirm(String id) {
        return merchantOrderMapper.confirm(id);
    }

    @Override
    public MerchantOrder orderTotal(String id) {
        return merchantOrderMapper.orderTotal(id);
    }
}
